﻿using System.Web.Services;
using System.Web.Script.Services;

[WebService]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class WeatherService : WebService
{
    [WebMethod]
    public string GetWeatherByLocation(double lat, double lng)
    {
        return GeonamesWeather.GetWeatherByLocation(lat, lng);
    }
}
